/*
 * dialog.h
 *
 *  Created on: Aug 16, 2010
 *      Author: aleee
 */

#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "dialogMail.h"
#include "../moduloConsultas/ManejadorInstrucciones.h"
#include "../moduloConsultas/Parser.h"
#include "../diccionario/ModeloDocumento.h"
#define CANT_BOTONES 5
#define CANT_FILAS 5

class QAction;
class QGroupBox;
class QLabel;
class QLineEdit;
class QMenu;
class QMenuBar;
class QPushButton;
class QTextEdit;

class Dialog : public QDialog
{
  Q_OBJECT

public:
  Dialog();

private:
  void createMenu();
  void createLoginGroupBox();
  void createOperationGroupBox();
  void createClassificationGroupBox();
  void createSelectionGroupBox();
  void createSearchGroupBox();
  void createDiccionarioGroupBox();
  void createDeleteGroupBox();

  QMenuBar *menuBar;
  QGroupBox *loginGroupBox;
  QGroupBox *operationGroupBox;
  QGroupBox *classificationGroupBox;
  QGroupBox *selectionGroupBox;
  QGroupBox *searchGroupBox;
  QGroupBox *diccionarioGroupBox;
  QGroupBox *deleteGroupBox;
  QTextEdit *smallEditor;
  QTextEdit *bigEditor;
  QLabel *labels[CANT_FILAS];
  QLineEdit *lineEdits[CANT_FILAS];
  QPushButton *buttons[CANT_BOTONES+13];
  QPushButton *okButton;
  QPushButton *cancelButton;

  QMenu *fileMenu;
  QAction *exitAction;

public slots:
void okClick();
void cancelClick();
void porIUCClick();
void buscarClick();
void borrarClick();
void verClick();
void resguardarClick();
void configurarClick();
void mostrarDiccionarioClick();
void buscarTerminoClick();
void buscarFraseClick();
void clasificarClick(QString texto);
void seleccionarClick(QString texto);
};

#endif /* DIALOG_H_ */
